package com.prp.bo;

import com.prp.gwt.client.ClientConstants;

public interface SNSConstants extends ClientConstants{
	public static final boolean User_Male = true;
	public static final boolean User_Female = false; 
	public static final String MALE_PORTRAIT = "image/portrait/default_male.jpeg";
	public static final String FEMALE_PORTRAIT = "image/portrait/default_female.jpeg";
	public static final String ENTITY_PIC = "image/entity/default.jpeg";
	public static final String NeighbourRelationship_FromId = "id.fromId";
	public static final String NeighbourRelationship_ToId = "id.toId";
	public static final String NeighbourRelationship_BuildUp = "buildup";
	public static final String Community_Id = "communityId";
	public static final String SearchRecord_UserId = "searchUserId";
	public static final String SubjectComment_UserId = "commentUserId";
	public static final String ScoreRecord_UserId = "scoreUserId";
	public static final String ScoreRecord_SubjectId = "subjectId";
	public static final String SubjectRecommendation_PublishId = "publishId";
	public static final String SubjectChildCategory_CategoryId = "categroyId";
	public static final String SubjectChildCategory_ChildCategoryName = "childCategoryName";
	public static final String SubjectRecomendation_CategoryChildId = "categoryChildId";
	public static final int	SubjectRocommendation_Content_Size = 20000;
	public static final int	SubjectRocommendation_SubjectTitle_Size = 256;

	
	public static final String MailSender_SendHost = "smtp.gmail.com";
	public static final String MailSender_SendProtocol = "smtp";
	public static final String MailSender_Username = "sns.prp";
	public static final String MailSender_Password = "snsprp1234";
	public static final String MailSender_FromAddress = "sns.prp@gmail.com";
	public static final String MailSender_Subject = "请激活您的帐户";
	
	/**
	 * SEARCH_RECORD 定义为 用户搜索一个关键词获得的兴趣值影响因数
	 */
	public final static double SEARCH_RECORD = 0.04;
	/**
	 * COMMENT_RECORD 定义为 用户评论一个主题贴获得的兴趣值影响因数
	 */
	public final static double COMMENT_RECORD = 0.08;
	/**
	 * RECOMMAND_RECORD 定义为 用户人工推荐一个主题贴获得的兴趣值影响因数
	 */
	public final static double RECOMMAND_RECORD = 0.16;
	/**
	 * PUBLISH_RECORD 定义为 用户发表一个主题贴获得的兴趣值影响因数
	 */
	public final static double PUBLISH_RECORD = 0.36;
	/**
	 * MAX_SCORE_RECORD 定义为 用户对主题贴进行评分是可以选择的最大值
	 */
	public final static int MAX_SCORE_RECORD = 10;
	/**
	 * MIN_NEIGHBOURS_RECOMMEND_USER_SIZE 定义为 候选推荐用户成员最小值
	 */
	public final static int MIN_NEIGHBOURS_RECOMMEND_USER_SIZE = 30;
	/**
	 * CLICK_PART 定义为 计算主题帖，主题类别，主题子类别，实体热度时点击率分数在总分中所占比例
	 */
	public final static double CLICK_PART = 0.3333333333333333;
	/**
	 * WAITING_PART 定义为 计算主题帖，主题类别，主题子类别，实体热度时逗留时间分数在总分中所占比例
	 */
	public final static double WAITING_PART = 0.3333333333333333;
	/**
	 * REPLY_PART 定义为 计算主题帖，主题类别，主题子类别，实体热度时回帖量分数在总分中所占比例
	 */
	public final static double REPLY_PART = 0.3333333333333333;
	/**
	 * TOP_HOT_RECOMMENDATION_NUM 定义为 推荐主题贴，主题类别，主题子类别，实体热度排行数量
	 */
	public final static int TOP_HOT_RECOMMENDATION_NUM = 10;
	/**
	 * MAX_STATE_SIZE 定义为 用户状态中最大可输入字数
	 */
	public final static int MAX_STATE_SIZE = 100;
	/**
	 * MAX_MESSAGE_SIZE 定义为 用户在留言板中单次留言最大字数
	 */
	public final static int MAX_MESSAGE_SIZE = 500;

}
